package semSimilarity.test;


public class RankingElement<T> implements Comparable<RankingElement<T>>{
	
	private Double similarity;
	private T element;
	public RankingElement(Double similarity, T element) {
		super();
		this.similarity = similarity;
		this.element = element;
	}
	public Double getSimilarity() {
		return similarity;
	}
	public void setSimilarity(Double similarity) {
		this.similarity = similarity;
	}
	public T getElement() {
		return element;
	}
	public void setElement(T element) {
		this.element = element;
	}
	@Override
	public int compareTo(RankingElement<T> o) {
		
		return -1*this.similarity.compareTo(o.similarity);
	}
	
	
	

}
